package com.ynny.Mapper;

import com.ynny.Entity.Students;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentsMapper {
    List<Students> selectAll();
    int insertBatch(@Param("studentsList") List<Students> studentsList);//批量插入
    List<Students> select(Students students);//根据学号、班级或者性别查询学生记录，或者查询所有学生记录
    int updateByNumber(Students students);//根据学号更新学生记录的姓名、性别、和年龄
    int deleteByNumber(String number);//根据学号删除学生记录
}
